class ChangeNumSize < ActiveRecord::Migration
  def self.up
    change_column :centros, :num_exterior, :string, :limit => 20, :null => false
    change_column :centros, :num_interior, :string, :limit => 20, :null => true
  end

  def self.down
    change_column :centros, :num_interior, :string, :limit => 5, :null => true
    change_column :centros, :num_exterior, :string, :limit => 5, :null => false
  end
end
